const dic = {
  identity_type: [
    { label: '注册供应商', value: '1' },
    { label: '推荐供应商', value: '2' },
    { label: '正式供应商', value: '3' },
    { label: '冻结供应商', value: '4' }
  ]
}

export const suppListOption = {
  border: true,
  stripe: true,
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  printBtn: false,
  simplePage: true,
  searchBtnText: '搜索',
  emptyBtnText: '清空',
  dialogType: 'drawer',
  searchMenuSpan: 6, //搜索按钮是否单独成行
  index: true,
  indexLabel: '序号',
  align: 'center',
  column: [
    {
      label: 'ERP供应商编码',
      prop: 'erpSupplierCode',
      minWidth: 120
    },
    {
      label: '供应商编码',
      prop: 'supplierCode',
      minWidth: 120
    },
    {
      label: '供应商名称',
      prop: 'supplierName',
      search: true, //启动搜索
      searchLabelWidth: 110,
      searchSpan: 6, // 搜索栏 布局
      minWidth: 180
    },
    {
      label: '供应商简称',
      prop: 'supplierShortName',
      minWidth: 120
    },
    {
      label: '供应商定位',
      prop: 'supplierPosition',
      minWidth: 120
    },
    {
      label: '采购工程师',
      prop: 'purchaseEngineer',
      searchLabelWidth: 110,
      searchSpan: 6,
      search: true,
      minWidth: 120
    },
    {
      label: '供应商身份',
      type: 'select',
      prop: 'supplierIdentity',
      dicData: dic.identity_type,
      props: {
        label: 'label',
        value: 'value'
      },
      searchLabelWidth: 110,
      searchMultiple:true,
      searchSpan: 6,
      search: true,
      slot: true,
      minWidth: 120
    },
    {
      label: '联系人',
      prop: 'contact',
      searchLabelWidth: 110,
      searchSpan: 6,
      search: true,
      minWidth: 120
    },
    {
      label: '手机号码',
      prop: 'phone',
      minWidth: 120
    },
    {
      label: '供应商分级',
      prop: 'supplierClassify',
      minWidth: 120
    }
  ]
}
export const page = {
  currentPage: 1,
  total: 40,
  layout: 'total, sizes, prev, pager, next, jumper',
  pageSizes: [10, 20, 50, 100],
  pageSize: 10
}
